"""
simple ui 配置
参考文档：https://newpanjing.github.io/simpleui_docs/config.html
"""

# 主题
SIMPLEUI_DEFAULT_THEME = "admin.lte.css"

# 是否默认分配图标
# SIMPLEUI_DEFAULT_ICON = False

# 关闭登录页粒子动画
SIMPLEUI_LOGIN_PARTICLES = False

# # 首页配置
SIMPLEUI_HOME_PAGE = "https://www.baidu.com"
# 首页标题
SIMPLEUI_HOME_TITLE = "概览"
# # 首页图标
# SIMPLEUI_HOME_ICON = 'fa fa-user'
# 设置simpleui 点击首页图标跳转的地址
SIMPLEUI_INDEX = "https://www.88cto.com"

# 服务器信息
SIMPLEUI_HOME_INFO = False
# 快速操作
SIMPLEUI_HOME_QUICK = False
# 最近动作
SIMPLEUI_HOME_ACTION = False
"""
使用分析
默认开启，统计分析信息只是为了更好的帮助simpleui改进，并不会读取敏感信息。并且分析数据不会分享至任何第三方。
"""
SIMPLEUI_ANALYSIS = False

# 自定义SIMPLEUI的Logo
# SIMPLEUI_LOGO = 'https://avatars2.githubusercontent.com/u/13655483?s=60&v=4'

# 菜单配置
SIMPLEUI_CONFIG = {
    # 是否需要保留系统默认的菜单
    "system_keep": False,
    # 开启排序和过滤功能, 不填此字段为默认排序和全部显示, 空列表[] 为全部不显示.
    # 'menu_display': ['Simpleui', '测试', '权限认证', '动态菜单测试', '多级菜单测试'],
    # 设置是否开启动态菜单, 默认为False. 如果开启, 则会在每次用户登陆时动态展示菜单内容
    "dynamic": True,
    "menus": [
        {
            "name": "Simpleui",
            "icon": "fas fa-code",
            "url": "https://gitee.com/tompeppa/simpleui",
            # 浏览器新标签中打开
            "newTab": True,
        },
        {
            "name": "测试产品",
            "icon": "fa fa-file",
            "models": [
                {
                    "name": "产品管理",
                    "icon": "fa fa-file",
                    # 二级菜单
                    "models": [
                        {
                            "name": "产品",
                            "icon": "far fa-surprise",
                            "url": "/admin/products/products/",
                        },
                        {
                            "name": "产品类型",
                            "url": "/admin/products/producttype/",
                            "icon": "fab fa-github",
                        },
                    ],
                },
                {
                    "name": "接口管理",
                    "icon": "fa fa-file",
                    # 二级菜单
                    "models": [
                        {
                            "name": "服务管理",
                            "url": "/admin/products/serverinfo/",
                            "icon": "fab fa-github",
                        },
                        {
                            "name": "域名管理",
                            "url": "/admin/products/hostinfo/",
                            "icon": "fab fa-github",
                        },
                        {
                            "name": "HTTP接口",
                            "icon": "far fa-surprise",
                            "url": "/admin/products/httpapi/",
                        },
                        {
                            "name": "DUBBO接口",
                            "icon": "far fa-surprise",
                            "url": "/admin/products/dubboapi/",
                        },
                    ],
                },
            ],
        },
        {
            "app": "auth",
            "name": "权限认证",
            "icon": "fas fa-user-shield",
            "models": [
                {"name": "用户", "icon": "fa fa-user", "url": "auth/user/"},
                {"name": "用户组", "icon": "fa fa-user", "url": "auth/group/"},
            ],
        },
    ],
}
